#include <stdio.h>
/*
结构体数组

*/
typedef struct stu
{
    char name[128]; // 名字
    char sex[64];   // 性别
    int age;        // 年龄
    int id;         // 学号
    int sco;        // 成绩
} stu;

int main(int argc, char const *argv[])
{

    stu hqyj_24071[100] =
        {
            {.id = 1, .age = 18, .sco = 100, .sex = "男", .name = "唐三"},
            {.id = 2, .age = 18, .sco = 99, .sex = "男", .name = "萧炎"},
            {.id = 3, .age = 18, .sco = 99, .sex = "男", .name = "叶晨"},
            {.id = 4, .age = 18, .sco = 99, .sex = "女", .name = "小舞"},
            {.id = 5, .age = 18, .sco = 99, .sex = "女", .name = "萧熏儿"},
            {.id = 6, .age = 18, .sco = 99, .sex = "女", .name = "柳如烟"},
        };
    
    int num[5] = {
        1,
        2,
        3,
        4
    };
        // 表头
    printf("|序号\t|名字\t\t|性别\t\t|学号\t|年龄\t\t|成绩\t\t|\n");
        // 数据
    for (size_t i = 0; i < 6; i++)
    {
        printf("|%ld\t|名字:%s\t|性别:%s\t|学号:%d\t|年龄:%d\t|成绩:%d\t|\n"
        , i + 1 ,hqyj_24071[i].name , hqyj_24071[i].sex , hqyj_24071[i].id ,
        hqyj_24071[i].age , hqyj_24071[i].sco
        );
    }



    return 0;
}
